﻿    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ClassManage.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Doc.ClassManage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" type="text/css" href="../../Styles/css/ssec-form.css"/> 
<link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="toolbars">
      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Doc/ClassManage.aspx" >栏目管理</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/Doc/ArticleManager.aspx">文章管理</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/Doc/ArticlePub.aspx">发布文章</a>
  </div>
   <div id="contents" class="ssec-form">
   <div class="ssec-group ssec-group-hasicon"><img src="../../easyui1.2.6/themes/icons/application.png" alt=""/><span>栏目设置</span></div>
   <ul>
        <li><div class="ssec-label">栏目ID：</div></li>
        <li><div class="ssec-text normal"><asp:TextBox ID="t_classid" runat="server" CssClass="ssec-text-field"  Enabled="false"></asp:TextBox></div></li>
        <li style="width:30px;"></li>
        <li><div class="ssec-label">栏目名称：</div></li>
        <li><div class="ssec-text normal"><asp:TextBox ID="t_classname" runat="server" CssClass="ssec-text-field"></asp:TextBox></div></li>
    </ul> 
      <ul>
          <li><div class="ssec-label">特殊标记：</div></li>
        <li><div class="ssec-text normal"><asp:TextBox ID="t_classflag" runat="server" CssClass="ssec-text-field"></asp:TextBox></div></li>

        <li style="width:30px;"></li>
        <li><div class="ssec-label">排序：</div></li>
        <li><div class="ssec-text normal"><asp:TextBox ID="t_orderby" runat="server" CssClass="ssec-text-field"></asp:TextBox></div></li>
    </ul>    
    <ul>
        <li><div class="ssec-label">允许发布角色：</div></li>
        <li><div>
            <asp:ListBox ID="t_pubroles" runat="server" AppendDataBoundItems="true" 
                Height="100px" Width="200" SelectionMode="Multiple"><asp:ListItem Text="不允许" Value="" ></asp:ListItem></asp:ListBox>
            </div></li>
        <li style="width:30px;"></li>
        <li><div class="ssec-label">允许浏览角色：</div></li>
        <li><div>
        <asp:ListBox ID="t_viewroles" runat="server" AppendDataBoundItems="true" 
                Height="100px" Width="200" SelectionMode="Multiple"><asp:ListItem Text="不允许" Value="" ></asp:ListItem></asp:ListBox>
        </div></li>
    </ul>   
    <ul><li style="width:100px;"></li>
   <li><asp:LinkButton ID="BtnSave" runat="server" CssClass="easyui-linkbutton" OnClick="BtnSave_OnClick">保存</asp:LinkButton></li>
   <li style="width:10px;"></li>
        <li><asp:LinkButton ID="BtnAdd" runat="server" CssClass="easyui-linkbutton" 
                onclick="BtnAdd_Click" >新增</asp:LinkButton></li>
                 <li style="width:10px;"></li>
        <li><asp:LinkButton ID="BtnDelete" runat="server" CssClass="easyui-linkbutton" 
                onclick="BtnDelete_Click">删除</asp:LinkButton></li>
  </ul>
      <div class="ssec-group ssec-group-hasicon"><img src="../../easyui1.2.6/themes/icons/application.png" alt=""/><span>栏目列表</span></div>
       <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" 
           CssClass="GridViewStyle" AllowPaging="false" 
           onselectedindexchanged="gv_SelectedIndexChanged">
           <Columns>
               <asp:BoundField DataField="CLASSID" HeaderText="栏目ID" />
               <asp:BoundField DataField="CLASSNAME" HeaderText="名称" />
               <asp:BoundField DataField="CLASSORDERBY" HeaderText="排序" />
                <asp:BoundField DataField="CLASSFLAG" HeaderText="特殊标记" />
               <asp:CommandField SelectText="修改" ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/easyui1.2.6/themes/icons/pencil.png"  />
           </Columns>
           <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
           <SelectedRowStyle BackColor="#CCCCCC" ForeColor="#FF6600" />
        </asp:GridView>
   </div>
</asp:Content>
